package top.iflyoung.cim.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author liguiyang
 * @description 聊天组
 * @sine 1.8
 * @date 2021/9/220:44
 **/
@Data
@TableName("chat_group")
public class ChatGroup extends Model<ChatGroup> {
    /**
     * 组ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    /**
     * 组名称
     */
    @TableField("Name")
    private String name;
    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private Date createTime;
    /**
     * 创建者的ID
     */
    @TableField("CreatorID")
    private Long creatorID;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
